package com.snda.lib.task;

import java.util.HashMap;
import java.util.Map;

import com.snda.lib.http.HttpUtil;
import com.snda.lib.http.HttpConst;
import com.snda.lib.http.ICallBack;

import android.content.Context;

public class BaseTask extends HttpGetTask {

	public BaseTask(Context context, ICallBack callback) {
		super(context, callback);
	}

	// 具体的task实现该方法，对响应报文进行解析
	protected Map<String, Object> parseResponse(String strResponse) {
		Map<String, Object> mapData = new HashMap<String, Object>();
		mapData.put(HttpConst.KEY_TASK_TYPE, nTaskType);
		mapData.put(HttpUtil.KEY_ERROR_CODE, HttpUtil.ERROR_SUCCESS);

		return mapData;
	}

}
